package com.woniuxy.coursemodel.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("新增单个普通课程参数列表")
public class OneCourseForm {
    @NotNull(message = "课程产品id不为空")
    @Min(1)
    @ApiModelProperty("普通课程产品id")
    private Integer courseProductId;
    @NotBlank(message = "课程开始时间不为空")
    @ApiModelProperty("课程开始时间")
    private String courseStartDate;
    @NotBlank(message = "课程结束时间不为空")
    @ApiModelProperty("课程结束时间")
    private String courseEndDate;
}
